import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import requireTransform from 'vite-plugin-require-transform';

// https://vitejs.dev/config/
export default defineConfig({
	plugins: [
		react(),
		requireTransform({
			fileRegex: /.js$|.vue$|.ts$|.jsx$|.tsx$|.html$/
		}),
	],
	define: {
		global: {}
	},
	server: {
		// host: '0.0.0.0'
	},
	css: {
		preprocessorOptions: {
			scss: {
				additionalData: `@use "sass:math";`
			}
		}
	}
})
